export function uniqueObjs(arr: any[], ids: string[], strick: boolean = true) {
  if (strick) {
    let uni = new Map<string, any>()
    arr.forEach(it => {
      const identifier = ids.map(id => it[id]).join('|');
      uni.set(identifier, it)
    })
    return [...uni.values()]
  } else {
    const uni: any = {}
    arr.forEach(it => {
      const identifier = ids.map(id => it[id]).join('|');
      uni[identifier] = it
    })
    return Object.values(uni)
  }
}